package iunaldev.iunal;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivityUn extends Activity {

	private Button nivelNacionalBtn;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main_activity_un);
		
		nivelNacionalBtn = (Button) findViewById(R.id.nivelNacionalBtn);
		
		nivelNacionalBtn.setOnClickListener(new View.OnClickListener()
		{
			public void onClick(View view){
				lanzarNivelNacional();
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main_activity_un, menu);
		return true;
	}
	
	public void lanzarNivelNacional(){
		Intent i = new Intent(this, NivelNacional.class);
		startActivity(i);
	}

}
